home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9025 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: hubcap.clemson.edu!usenet
  2. From: ckirsch@eng.clemson.edu (Chuck Kirschman)
  3. Newsgroups: comp.os.msdos.programmer,comp.lang.c
  4. Subject: What does this do?
  5. Date: 5 Mar 1996 01:14:39 GMT
  6. Organization: Clemson University College of Engineering
  7. Distribution: world
  8. Message-ID: <4hg4hv$iqb@hubcap.clemson.edu>
  9. Reply-To: ckirsch@eng.clemson.edu
  10. NNTP-Posting-Host: alms.eng.clemson.edu
  11.  
  12. I'm working in *somebody else's code*, which I'm sure everyone pretty
  13. much dreads.  I've run across a construct which I don't understand the
  14. purpose of:
  15.  
  16. void foo(int bar, float *baz)
  17. {
  18.   int x,y;
  19.   
  20.   (void) x;
  21.   (void) y;
  22.   
  23.   [rest of function]
  24. }
  25.  
  26. The compiler (Watcom 10.5) doesn't like it, but lets it pass.  What exactly
  27. is this doing?  And, more importantly, what is the author trying to acheive?
  28.  
  29. thanks
  30. chuck
  31.  
  32. ---
  33. Chuck Kirschman                     ckirsch@eng.clemson.edu
  34. http://www.eng.clemson.edu/~ckirsch/
  35. "I don't NEED to compromise my principles, because they don't have the
  36.  slightest bearing on what happens to me anyway." - Calvin
  37.  
  38.  
  39.